package java8_19;

/**
 * @author oldliu
 * @since 1.0
 */
public class MobilePhone {
    String brand;
    String color;
    int prize;
    //什么时候？
    Battery b;
    //Battery b=new Battery();//！！！！

    public void show(){
        System.out.println("这部手机是"+brand+"\n颜色是"+color+"\n价格是"+prize+"元");
        System.out.println("电池信息如下：");
        //System.out.println(b);//
        System.out.println("品牌是："+b.brand+",容量是"+b.vol+"毫安");
    }
}
